import java.io.*;
import java.lang.String;
import java.lang.Integer;
public class MyDO2 {
    public static void tenTotwo(String in,String out) throws IOException{
        try(FileInputStream file1 = new FileInputStream(in);FileOutputStream file2 = new FileOutputStream(out)){
            byte[] data = new byte[1024];
            int length = -1,i=0;
            length = file1.read(data);
            while(i<length-1){
            	data[i] = (byte)((int)data[i]-48);
            	
                i++;
            }
            file2.write(data,0,length);
        }
    }
    public static void twoToten(String in,String out) throws IOException{
        try(FileInputStream file1 = new FileInputStream(in);FileOutputStream file2 = new FileOutputStream(out)){
            byte[] data = new byte[1024];
            int length = -1,i=0,j=0;
            length = file1.read(data);
            while(i<length-1) {
  
                String str = Integer.toString(0xff+data[i]+1,10);
 
                char[] mytxt = str.toCharArray();
   
                for(j=0;j<str.length();j++)
                {
                    file2.write(mytxt[j]);
                }
                i++;
            }
        }
    }
}